home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / frame_3 / PlaceObject2_388_1144 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-04  |  1006 b   |  45 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.botfire)
  3.    {
  4.       this._visible = true;
  5.       this._x -= 15;
  6.    }
  7.    if(this._x < _root.sheep._x)
  8.    {
  9.       if(!_root.hitarea9)
  10.       {
  11.          _root.bot9.gotoAndPlay(1);
  12.       }
  13.       if(_root.inair)
  14.       {
  15.          _root.bot9.gotoAndPlay(1);
  16.       }
  17.       if(!_root.inair)
  18.       {
  19.          _root.sheep.gotoAndPlay(14);
  20.          _root.bot9.gotoAndPlay(1);
  21.          _root.sheeplife -= _root.sheeplifeclaculate / 9;
  22.          _root.life.nextFrame();
  23.       }
  24.       if(_root.sheeplife < 1)
  25.       {
  26.          _root.sheepdeath = true;
  27.          _root.sheep.gotoAndStop(8);
  28.          _root.bot9.gotoAndPlay(1);
  29.       }
  30.       this._x = _root._root.bot9._x;
  31.       _root.botfire = false;
  32.       this._visible = false;
  33.    }
  34.    if(this._x < 0)
  35.    {
  36.       if(_root.notdead9)
  37.       {
  38.          this._x = _root._root.bot9._x;
  39.          _root.botfire = true;
  40.          _root.bot9.gotoAndPlay(1);
  41.          this._visible = false;
  42.       }
  43.    }
  44. }
  45.